package org.jeecg.modules.utils;

import cn.hutool.core.img.Img;
import org.jeecg.modules.constant.BikeConstant;
import org.springframework.stereotype.Component;

/**
 * 月月鸟
 */
@Component
public class RichTextUtils {

    public static String newRichTextAddWH(String richText){
        String regex= "<img";
        //String WH ="<img width="+ BikeConstant.rich_text_w+" height="+BikeConstant.rich_text_h+" ";
        String WH ="<img width="+ BikeConstant.rich_text_w;
        String replace = richText.replace(regex, WH);
        return replace;
    }
}
